package command

import (
	dto "ssadmin/common/query"
	"ssadmin/internal/admin/models"
)

type SysGotoReq struct {
	Goto string `json:"goto"`
}

type DataKeepReq struct {
	Keep int `json:"keep" vd:"$>0"`
	dto.UserInfo
}

type FileCleanReq struct {
	Config []models.SysConf `json:"config" vd:"len($)>0"`
	dto.UserInfo
}

type TableSync struct {
	TableName string `json:"tableName"`
	Url       string `json:"url"`
	Sk        string `json:"sk" vd:"len($)>0"`
	Ts        int64  `json:"ts" vd:"$>0"`
	Type      string `json:"type"`
	Mq        string `json:"mq"`
	Switch    string `json:"switch" vd:"len($)>0"`
	dto.UserInfo
}
